//
//  MRMSettingDelegateImpl.m
//  MeiRiMoney
//
//  Created by qiuqk on 13-8-11.
//  Copyright (c) 2013年 MeiRiCai. All rights reserved.
//

#import "MRMSettingDelegateImpl.h"
#import "IASKSettingsReader.h"

@implementation MRMSettingDelegateImpl

- (void)settingsViewControllerDidEnd:(IASKAppSettingsViewController *)sender
{
	
}
- (CGFloat) settingsViewController:(id<IASKViewController>)settingsViewController tableView:(UITableView *)tableView heightForHeaderForSection:(NSInteger)section
{
	NSString *key = [settingsViewController.settingsReader keyForSection:section];
	if ([key isEqualToString:@"MRMLogo"])
	{
		return 100;
	}
	return 0;
}

- (UIView *) settingsViewController:(id<IASKViewController>)settingsViewController tableView:(UITableView *)tableView viewForHeaderForSection:(NSInteger)section
{
	NSString *key = [settingsViewController.settingsReader keyForSection:section];
	if ([key isEqualToString:@"MRMLogo"]) {
		UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"Icon.png"]];
		imageView.contentMode = UIViewContentModeCenter;
		return imageView;
	}
	return nil;
}

@end
